package com.killer.system.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.killer.common.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 后台资源表
 * </p>
 *
 * @author killer
 * @since 2021-08-18
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("tb_resource")
@ApiModel(value="Resource对象", description="后台资源表")
public class Resource extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "资源key")
    @TableField("res_key")
    private String resKey;

    @ApiModelProperty(value = "资源名称")
    @TableField("res_name")
    private String resName;

    @ApiModelProperty(value = "上级资源id")
    @TableField("parent_id")
    private Long parentId;


}
